﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Isha.Data.Infrastructure;
using Isha.Entities;
using Isha.Repositories.Infrastructure;

namespace Isha.Repositories
{
    internal class RoleRepository : RepositoryBase<Role>, IRoleRepository
    {

        public RoleRepository(IDatabaseFactory databaseFactory) 
            : base(databaseFactory)
        {

        }

        public Role Find(string roleName)
        {
            var role = base.Find(u => u.RoleName == roleName);
            return role;
        }
    }
}
